<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title>vue组件</title>
		<script src="../vue.js"></script>
	</head>
	<body>
		<div id="app">
			<mycard></mycard>
		</div>
		<script>
		Vue.component('mycard',{
			template:'<div>{{txt}}</div>',
			data:function(){
				return {
					txt:'这是我的伊达'
				}
			}
		})
		var vm=new Vue({
			el:"#app"
		})
		</script>
	</body>
</html>
